package org.wzy.spring.framework.webmvc.demo.service.impl;

import org.wzy.spring.framework.annotation.Service;
import org.wzy.spring.framework.webmvc.demo.service.IDemoService;

@Service
public class DemoServiceImpl implements IDemoService {
    @Override
    public String get(String name) {
        return "{\"name\":\"" + name + "\"}";
    }

    @Override
    public String add(String name) {
        System.out.println("Add successfully.");
        return name + " add successfully!";
    }
}
